<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/common/_container :: htmlhead"></head>
<body>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal">
		
			<input type="hidden" id="id" th:value="${role.id}"/>

			<div class="row">
				<div class="col-sm-6 b-r">
					<div class="form-group">
					    <label class="col-sm-3 control-label">角色名称
							<span style="color: red">*</span>
					    </label>
					    <div class="col-sm-9">
					        <input class="form-control" id="name" th:value="${role.name}" type="text"  />
					    </div>
					</div>
					<div class="hr-line-dashed"></div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-3 control-label">角色类型
							<span style="color: red">*</span>
						</label>
						<div class="col-sm-9">
							<select class="form-control" id="type">
								<option value="">---请选择角色类型---</option>
								<option th:each="code,iterStat:${roleTypes}" th:value="${code.key}" th:text="${code.value}"></option>
							</select>
							<input class="form-control" id="type2"  th:value="${role.type}" type="hidden"  />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-3 control-label">数据权限
							<span style="color: red">*</span>
						</label>
						<div class="col-sm-9">
							<select class="form-control" id="dataScope">
								<option value="">---请选择数据权限---</option>
								<option th:each="code,iterStat:${dataScopes}" th:value="${code.key}" th:text="${code.value}"></option>
							</select>
							<input class="form-control" id="dataScope2"  th:value="${role.type}" type="hidden"  />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
				</div>
				
				

				<div class="col-sm-6">
					<div class="form-group">
					    <label class="col-sm-3 control-label">别名
							<span style="color: red">*</span>
					    </label>
					    <div class="col-sm-9">
					        <input class="form-control" id="tips" th:value="${role.tips}" type="text"  />
					    </div>
					</div>
					<div class="hr-line-dashed"></div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
					    <label class="col-sm-3 control-label">排序
							<span style="color: red">*</span>
					    </label>
					    <div class="col-sm-9">
					        <input class="form-control" id="num"  th:value="${role.num}" type="number"  />
					    </div>
					</div>
					<div class="hr-line-dashed"></div>
				</div> 
				
			</div>


			<div class="row btn-group-m-t">
				<div class="col-sm-10">
	               	 <button type="button" class="btn btn-info" id="ensure" onclick="RolInfoDlg.editSubmit()" >
						   <i class="fa fa-check"></i>&nbsp;提交
					</button>
					<button type="button" class="btn btn-danger"  id="cancel" onclick="RolInfoDlg.close()" >
						   <i class="fa fa-eraser"></i>&nbsp;取消
					</button>                   
                </div>
			</div>
		</div>

	</div>
</div>
<script th:src="@{/static/modular/system/role/role_info.js}"></script>
</body>
</html>
